package jobtc;


import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import java.awt.Color;
import javax.swing.JTextArea;

public class MukChiPa extends JFrame {

	private JPanel contentPane;
	private JButton button;
	private JButton button_1;
	private JScrollPane scrollPane;
	private JLabel label;
	private JTextField textField;
	private JLabel label_1;
	private JTextField textField_1;
	private JTextField textField_2;
	private JLabel label_2;
	private JLabel label_3;
	private JButton button_2;
	private JButton button_3;
	private JLabel label_4;
	private JTextArea textArea;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				try {
					MukChiPa frame = new MukChiPa();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MukChiPa() {
		setTitle("묵찌빠 게임");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		contentPane.add(getButton());
		contentPane.add(getButton_1());
		contentPane.add(getScrollPane());
		contentPane.add(getLabel());
		contentPane.add(getTextField());
		contentPane.add(getLabel_1());
		contentPane.add(getTextField_1());
		contentPane.add(getTextField_2());
		contentPane.add(getLabel_2());
		contentPane.add(getLabel_3());
		contentPane.add(getButton_2());
		contentPane.add(getButton_3());
		contentPane.add(getLabel_4());
	}

	private JButton getButton() {
		if (button == null) {
			button = new JButton("묵");
			button.setBounds(223, 211, 65, 41);
		}
		return button;
	}
	private JButton getButton_1() {
		if (button_1 == null) {
			button_1 = new JButton("시작");
			button_1.setBounds(325, 10, 97, 95);
		}
		return button_1;
	}
	private JScrollPane getScrollPane() {
		if (scrollPane == null) {
			scrollPane = new JScrollPane();
			scrollPane.setBounds(12, 10, 157, 242);
			scrollPane.setViewportView(getTextArea());
		}
		return scrollPane;
	}
	private JLabel getLabel() {
		if (label == null) {
			label = new JLabel("승률");
			label.setHorizontalAlignment(SwingConstants.CENTER);
			label.setBounds(181, 14, 57, 15);
		}
		return label;
	}
	private JTextField getTextField() {
		if (textField == null) {
			textField = new JTextField();
			textField.setColumns(10);
			textField.setBounds(181, 35, 65, 21);
		}
		return textField;
	}
	private JLabel getLabel_1() {
		if (label_1 == null) {
			label_1 = new JLabel("전");
			label_1.setBounds(251, 38, 57, 15);
		}
		return label_1;
	}
	private JTextField getTextField_1() {
		if (textField_1 == null) {
			textField_1 = new JTextField();
			textField_1.setColumns(10);
			textField_1.setBounds(181, 59, 65, 21);
		}
		return textField_1;
	}
	private JTextField getTextField_2() {
		if (textField_2 == null) {
			textField_2 = new JTextField();
			textField_2.setColumns(10);
			textField_2.setBounds(181, 84, 65, 21);
		}
		return textField_2;
	}
	private JLabel getLabel_2() {
		if (label_2 == null) {
			label_2 = new JLabel("승");
			label_2.setBounds(251, 63, 57, 15);
		}
		return label_2;
	}
	private JLabel getLabel_3() {
		if (label_3 == null) {
			label_3 = new JLabel("패");
			label_3.setBounds(251, 87, 57, 15);
		}
		return label_3;
	}
	private JButton getButton_2() {
		if (button_2 == null) {
			button_2 = new JButton("찌");
			button_2.setBounds(291, 211, 65, 41);
		}
		return button_2;
	}
	private JButton getButton_3() {
		if (button_3 == null) {
			button_3 = new JButton("빠");
			button_3.setBounds(357, 211, 65, 41);
		}
		return button_3;
	}
	private JLabel getLabel_4() {
		if (label_4 == null) {
			label_4 = new JLabel("보");
			label_4.setOpaque(true);
			label_4.setHorizontalAlignment(SwingConstants.CENTER);
			label_4.setBackground(Color.LIGHT_GRAY);
			label_4.setBounds(223, 116, 199, 85);
		}
		return label_4;
	}
	private JTextArea getTextArea() {
		if (textArea == null) {
			textArea = new JTextArea();
		}
		return textArea;
	}
}
